package org.springblade.modules.admin.vo.plan;

import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.util.Date;

/**
 * 绩效统计 任务工单model
 *
 * @author zcc
 * @version 1.0
 * @date 2022/4/18 8:51
 */
@Data
public class ExcelPlanContentVo {

	private Long planId;

	private Long userId;

	private Long elevatorId;

	private Integer planStatus;

	private Integer workMinute;

	private Integer isDeferred;

	private Date planEndTime;

	private String signInfo;

	private PlanUserSignDetailVo signUser;

	private Date planDate;

	public void setSignInfo(String signInfo) {
		this.signInfo = signInfo;
		if (StrUtil.isNotEmpty(signInfo)) {
			PlanUserSignDetailVo planUserSignDetailVo = JSON.parseObject(signInfo, PlanUserSignDetailVo.class);
			signUser = planUserSignDetailVo;
		}
	}
}
